#!/bin/sh
echo "🔍 Running pre-commit checks..."
npx lint-staged
if [ $? -ne 0 ]; then
  echo "❌ Pre-commit checks failed. Please fix the errors before committing."
  exit 1
fi
echo "✅ Pre-commit checks passed!"